import request from '@/utils/request';
import type { updateStaffSchedule } from '@/model'
export const getStaffSchedule = () => request.get('/getStaffSchedule')
export const updateStaffSche = (data: updateStaffSchedule) =>
  request.post('/updateStaffSche', JSON.stringify(data), {
    headers: {
      'Content-Type': 'application/json'
    }
  })
export const QuerySchedule = (username: string, type: string, deptName: string) =>
  request.get('/QuerySchedule', {
    params: {
      username: username, type: type, deptName: deptName
    }
  })
